package com.terrace.db.system.service;

import com.terrace.db.system.mapper.entity.Log;
import com.terrace.db.system.mapper.entity.LogWithDetails;
import com.terrace.core.mybatis.entity.Pagination;

public interface LogService {
	
	/**
	 * 保存日志
	 * @param log
	 * @return
	 */
    public int saveLogSelective(LogWithDetails log);
	
	/**
	 * 根据ID查询日志详情
	 * @param logId
	 * @return
	 */
	public LogWithDetails selectLogDetailsById(int logId);
	
	/**
	 * 分页查询
	 * @param pagination
	 * @param log
	 * @return
	 */
	public Pagination<Log> selectLogsForPagination(Pagination<Log> pagination, Log log);
	
}
